package cn.iocoder.devlop.module.annual.report.common.dal;

import cn.iocoder.devlop.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.devlop.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.devlop.module.annual.report.common.dal.dataobject.EnttypeAntypeDO;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface EnttypeAntypeMapper extends BaseMapperX<EnttypeAntypeDO> {

    default EnttypeAntypeDO selectByEnttype(String enttype){
        LambdaQueryWrapperX<EnttypeAntypeDO> wrapper = new LambdaQueryWrapperX<>();
        wrapper.eq(EnttypeAntypeDO::getEnttype,enttype);
        return selectOne(wrapper);
    }
}
